" echom "提示：This is plugins-airline.vimrc"

" -----------------------------------------------------------------------------
" 状态栏主题插件 airline 配置（nvim中有错乱 所以neovim用另一个状态栏插件）
	" 使用说明
		" 需要安装第三方的字体，默认的字体库有些图标不支持导致乱码

	" 配置
		if(isVim)
			" 设置中文提示
			language messages zh_CN.utf-8 
			" 设置中文帮助
			set helplang=cn
			" 设置为双字宽显示，否则无法完整显示如:☆
			set ambiwidth=double
			" 总是显示状态栏 
			let laststatus = 2
			" let g:airline_powerline_fonts = 1   " 使用powerline打过补丁的字体
			" 开启tabline
			"打开tabline功能,方便查看Buffer和切换，这个功能比较不错"
			"还省去了minibufexpl插件，因为我习惯在1个Tab下用多个buffer"
			let g:airline#extensions#tabline#enabled = 1
			"tabline中当前buffer两端的分隔字符
			let g:airline#extensions#tabline#left_sep = ''
			let g:airline#extensions#tabline#left_alt_sep = ''
			let g:airline#extensions#tabline#right_sep = ''
			let g:airline#extensions#tabline#right_alt_sep = ''
			let g:airline#extensions#tabline#close_symbol = '关'
			"tabline中未激活buffer两端的分隔字符
			let g:airline#extensions#tabline#left_alt_sep = '»'
			let g:airline#extensions#tabline#left_alt_sep = '...'
			"tabline中buffer显示编号
			let g:airline#extensions#tabline#buffer_nr_show = 1      

			" 关闭状态显示空白符号计数,这个对我用处不大"
			"let g:airline#extensions#whitespace#enabled = 0
			"let g:airline#extensions#whitespace#symbol = '!'

			" 设置字体 
			" set guifont=Powerline_Consolas:h14:cANSI     " (Windows系统默认没有安装该字体需要自己下载安装 该字体似乎未支持文件图标)
		endif
